import request from '@/utils/request'

// 查询仓库中心=》观赏鱼列表
export function listFish(query) {
  return request({
    url: '/warehouse/fish/list',
    method: 'get',
    params: query
  })
}

// 查询仓库中心=》观赏鱼详细
export function getFish(fishcode) {
  return request({
    url: '/warehouse/fish/' + fishcode,
    method: 'get'
  })
}

// 新增仓库中心=》观赏鱼
export function addFish(data) {
  return request({
    url: '/warehouse/fish',
    method: 'post',
    data: data
  })
}

// 修改仓库中心=》观赏鱼
export function updateFish(data) {
  return request({
    url: '/warehouse/fish',
    method: 'put',
    data: data
  })
}

// 删除仓库中心=》观赏鱼
export function delFish(fishcode) {
  return request({
    url: '/warehouse/fish/' + fishcode,
    method: 'delete'
  })
}

// 导出仓库中心=》观赏鱼
export function exportFish(query) {
  return request({
    url: '/warehouse/fish/export',
    method: 'get',
    params: query
  })
}